package com.zzh.jetpackdemo


import kotlinx.coroutines.*
import org.junit.Assert.assertEquals
import org.junit.Test

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        var job = GlobalScope.launch(start = CoroutineStart.LAZY) {
            println("zhi xing le kai bu kai xin")
        }
        println("start")
        Thread.sleep(2000)
        job.start()
        Thread.sleep(2000)
        println("end")
        assertEquals(4, 2 + 2)
    }

}